<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
    <link rel="stylesheet" href="/style1/public.css">
    <link rel="stylesheet" href="/style1/rili.css">
    <link rel="stylesheet" href="/style1/home.css">
    <script src="/js/jquery-1.8.3.min.js"></script>
    <script src="/js/laydate.dev.js"></script>
    <link rel="stylesheet" href="/static/js/layer/skin/layer.css">
    <script src="/static/js/layer/layer.js"></script>
    <script>
        $(function(){

            $('#zhuxiao').click(function(){



                    $(location).attr('href',"{{url('logOut')}}");  //jquery跳转


            });

            $('#zhuye').click(function(){

                layer.confirm('确定回到主页?',{btn:['确定','取消']},function(){

                    $(location).attr('href',"{{url('/')}}");  //jquery跳转

                },function(){

                });
            });


        });
    </script>
</head>
<body>
<div id="header">
    <div class="header_center">
        <div class="header_center_left" style="position: absolute;left: 0;"> 品牌代理系统</div>
        <!--<div class="header_center_center">-->
        <!--<input type="text" placeholder="请输入搜索内容"/>-->
        <!--<p>搜索</p>-->
        <!--</div>-->
        <div class="header_center_right" style="position: absolute;right: 0;">
            <div class="userone" >
                <img src="/imgs/touxiang.jpg" alt=""/>
                <p>{{session('adminname')}}</p>
                <p class="p1" onclick="window.location.href='{{urlAdmin('Brand','getModifyPwd')}}'">修改密码</p>
            </div>
            <ul>
                <li><a href="{{url('/')}}" target="_blank"><img id='zhuye' src="/imgs/pic1.png" alt=""/></a></li>
                <li><a href="{{url('logOut')}}"><img id='zhuxiao' src="/imgs/pic3.png" alt=""/></a></li>
            </ul>
        </div>
    </div>
</div>
<div id="content">
    <div id="left">
        <ul>
            <a href="{{url('center/agentlev')}}"><li @if(Request::path()=='center/agentlev') class="active" @endif>代理层级管理</li></a>
            <a href="{{url('center/agent')}}"><li @if($flag=='agent') class="active" @endif>代理成员管理</li></a>
            <a href="{{url('center/order?p=0&status=0')}}"><li @if($flag=='order') class="active" @endif>订单管理</li></a>
            <a href="{{url('center/goods')}}"><li @if($flag=='goods') class="active" @endif>商品管理</li></a>
            <a href="{{url('center/securitycode/in')}}"><li @if($flag=='sec') class="active" @endif>仓库防伪码</li></a>
            <li @if($flag=='shu')class="active"@endif><a href="/center/getimage/">品牌代理书</a></li>
            <a href="{{url('center/announce/agent')}}"><li @if($flag=='announceag') class="active" @endif>发布公告</li></a>
            <a href="{{url('center/announceag')}}"><li @if($flag=='system') class="active" @endif>系统公告</li></a>
        </ul>
    </div>
    <div id="right">
        @yield('title')
        <div class="main">

             @yield('content')

        </div>
    </div>
</div>
<script>

        laydate({
            elem: '#hello'
        });
        laydate({
            elem: '#hello1'
        });


</script>
</body>
</html>